#!/usr/bin/env pythonBasics
# -*-coding:utf-8-*-

#Author:super

import mysql.connector

mydb = mysql.connector.connect(
	host = 'localhost',
	port = '3309',
	user = 'root',
	password = 'root',
	database = 'runoob_db'
)

mycursor = mydb.cursor()

mycursor.execute('INSERT INTO sites(NAME,url) VALUE("runboo","http://runboo.com")')
print(mycursor.rowcount)
mydb.commit()
mydb.close()